
#pragma once

//#include "common.h"

class CBtnState : public CButton
{

private:
	static unsigned long m_lBitmapUsed;
	int m_nIDActive;
	int m_nIDDisactive;
	int m_nType;

protected:
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	DECLARE_MESSAGE_MAP()

public:
	CBtnState();
	int m_nState;

	virtual ~CBtnState();
	virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
	void SetType(int nType = 0);
	void SetState(int nState = 1);
	BOOL SetBitmap(int nIDActive = 0, int nIDDisActive = 0);
	
};
